# Contributor: Michał Polański <michal@polanski.me>
# Maintainer: Orhun Parmaksız <orhunparmaksiz@gmail.com>
pkgname=zps
pkgver=1.2.9
pkgrel=0
pkgdesc="Utility for listing and reaping zombie processes"
url="https://github.com/orhun/zps"
license="GPL-3.0-only"
arch="all"
options="!check" # no test suite
makedepends="cmake samurai"
subpackages="$pkgname-doc"
source="https://github.com/orhun/zps/archive/$pkgver/zps-$pkgver.tar.gz"

build() {
	cmake -B build -G Ninja \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" cmake --build build --target install

	install -Dm644 -t "$pkgdir"/usr/share/man/man1 man/zps.1
}

sha512sums="
fd3a7b7d15ce738687631b23cc0fe5ae52e5958102d6a940d9c0d16fefeb69fab6d8c50db26838408642151d3d6c9d8a108f41e6821421bc6469516b2645d669  zps-1.2.9.tar.gz
"
